﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using BLL;
using IBLL;
using Autofac;

namespace T11
{
    public partial class Form1 : Form
    {
        IStudentBLL studentBLL;
        public Form1()
        {
            InitializeComponent();
            IContainer container = IcoCreate.CreatIoc();
            studentBLL=container.Resolve<IStudentBLL>();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            string zhi = studentBLL.Select();
            MessageBox.Show(zhi);
        }
    }
}
